package com.parcial.data.util;

public class Clave {
	private String[] columnas;
	private Object[] valores;
	
	public Clave() {
	}
	
	public Clave(String ... columnas) {
		this.columnas = columnas;
	}
	
	public void setColumnas(String ... columnas) {
		this.columnas = columnas;
	}
	
	public void setValores(Object ... valores) {
		this.valores = valores;
	}
	
	public String toOrderString() {
		StringBuilder sb = new StringBuilder();
		for(String c: columnas) {
			sb.append(c).append(",");
		}
		return sb.deleteCharAt(sb.length()-1).toString();
	}
	
	public String[] getColumnas() {
		return columnas;
	}
	
	public Object[] getValores() {
		return valores;
	}
	
}
